import request from "./axios";
 
export const projectAPI = {
  // 获取项目列表
  getList: (params) => request.get("/projects", { params }),
  // 获取项目详情
  getDetail: (id) => request.get(`/projects/${id}`),
  // 创建项目
  create: (data) => request.post("/projects", data),
  // 更新项目
  update: (id, data) => request.put(`/projects/${id}`, data),
  // 删除项目
  delete: (id) => request.delete(`/projects/${id}`),
};

 
export const constructionSchemeAPI = {
  getList: (params) => request.get("/construction-schemes", { params }),
  getDetail: (id) => request.get(`/construction-schemes/${id}`),
  create: (data) => request.post("/construction-schemes", data),
  update: (id, data) => request.put(`/construction-schemes/${id}`, data),
  delete: (id) => request.delete(`/construction-schemes/${id}`),
};
